<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>editor</title>
</head>
<style>
    #editor {
        height: 60px;
        width: 200px;
        border: 1px solid #dcdcdc;
    }
    #editor:focus {
        outline: 0;
    }
</style>
<body>
    <div id="editor" contenteditable="true">可编辑饿了</div>
    <div id="view"></div>
</body>
<script src="./index.js"></script>
</html>